home *** CD-ROM | disk | FTP | other *** search
- package com.sun.java.swing.border;
-
- import java.awt.Component;
- import java.awt.Graphics;
- import java.awt.Insets;
- import java.io.Serializable;
-
- public class EmptyBorder extends AbstractBorder implements Serializable {
- protected int left;
- protected int right;
- protected int top;
- protected int bottom;
-
- public EmptyBorder(int top, int left, int bottom, int right) {
- this.top = top;
- this.right = right;
- this.bottom = bottom;
- this.left = left;
- }
-
- public EmptyBorder(Insets insets) {
- this.top = insets.top;
- this.right = insets.right;
- this.bottom = insets.bottom;
- this.left = insets.left;
- }
-
- public Insets getBorderInsets(Component c) {
- return new Insets(this.top, this.left, this.bottom, this.right);
- }
-
- public boolean isBorderOpaque() {
- return false;
- }
-
- public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) {
- }
- }
-